package org.huawei.model.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;


@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class User {
    private int userId;
    private int roleId;
    private String userAccount;
    private String userPassword;
    private String userName;
    private String userEmail;
    private String userPhone;
    private UserStatus userStatus;

    public enum UserStatus {
        ACTIVE,
        SUSPENDED,
        DELETED
    }

    public User(String userId, String password) {
        this.userAccount = userId;
        this.userPassword = password;
    }
}
